#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[] = { 1,1,5,8,44,7 };
	int max = 0;
	int min = 100;
	int i = 0;
	for (i = 0; i < 6; i++)
	{
		min = arr[i] < min ? arr[i] : min;
		max = arr[i] > max ? arr[i] : max;
	}
	printf("%d %d", min, max);
	return 0;
}